<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>{$head[title]}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta content="{$head[keywords]}" name="keywords" />
<meta content="{$head[description]}" name="description" />
<link href="favicon.ico" rel="shortcut icon" />
<link href="{SKIN_PATH}skin/style.css" rel="stylesheet" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="{$head[title]}" href="/rss.php?rssid={$catid}" />
<script language="JavaScript" src="misc/config.js"></script>
<script language="JavaScript" src="misc/jquery.min.js"></script>
<script language="JavaScript" src="misc/jquery.cookie.js"></script>
<script language="JavaScript" src="misc/common.js"></script>
<script language="JavaScript" src="misc/validator.js"></script>
</head>
<body> 

 
{template 'header.html'}




<style type="text/css">
.hero-unit{
	height:auto; overflow:hidden;
}
.hero-unit input{ margin:0;}
.reg{
	width:60%; float:left; display:inline;
}
.login{
	width:30%; float:right; display:inline;
}

</style>

 
<div class="container"> 
    <div class="main"> 
			
               	<h3>{$_nickname},欢迎回来</h3>
                
                
               <!--<div class="mod">
               		<div class="head"></div>
                    <div class="body">
                    	<table width="349" class="table table-bordered table-relief">
  <tr>
    <td width="25%" height="80" align="center" valign="middle" style="background-color: #E5E5E5;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.125) inset;"><a href="{url("?module=tweet&action=create")}">发一篇短微薄</a></td>
    <td width="25%" height="80" align="center" valign="middle">发视频</td>
    <td width="25%" height="80" align="center" valign="middle">发图片</td>
    <td width="25%" height="80" align="center" valign="middle">发博客</td>
  </tr>
</table>

</p>
                 </div>
               </div> -->
                
                
                
                
             <div class="mod">
                
              <style type="text/css">
			  	.logined .item{ clear:both; margin:20px 0; padding:20px 0; border-bottom:#ebebeb solid 1px;}
				.logined .item .thumbnail{ margin:10px 0 0 0 ;}
			  </style>
                <div class="logined clear">
        		  
           
                
               
               
                  {php $i=0;}
                  {loop $data $n $r}
                  
                    {php $i++;}
                    {if $i==16} 
                    {php break;} 
                    {/if}
                    
                     
                     
                     
                     
                     <div class="bubblely">
                        <div class="bubblely-item">
                        	
                            <div class="bubblely-aside">
                                <a href="{url("?module=space&userid=$r[userid]")}" title="{$r[username]}" rel="popover" data-placement="right"><img src="{thumb(avatar($r[userid]),48,48)}" alt="{$r[username]}"  target="_blank" width="48" height="48" class="thumbnail"/></a>
                            </div>
                            <div class="bubblely-main">
                                <div class="arrow"></div>
                                <div class="bubblely-inner">
                                
                                	<h4 class="bubblely-title"><a href="{url($r[url])}" target="{$target}">{output::style(str_cut($r[title], 60),$r[style])}</a></h4>
                                    {if $r[description]}
                                    <div class="bubblely-desc">{str_cut(str_replace('　','',$r[description]),450,'...')} </div>
                                    {/if}
                                    
                                    <div class="bubblely-tool">
                                    	<i class="icon-eye-open"></i>{$r[hits]}次浏览&nbsp;
                                    	<i class="icon-plus"></i><a href="#">关注TA</a>&nbsp;
                                        <i class="icon-bookmark"></i><a href="?module=collect&action=add&mod=&field=&value=">添加收藏</a>
                                    </div>
                                </div>
                            </div>
                        </div>
                   </div>
                    
                  {/loop}
                  
                  <a class="button button-block" href="?page=2">查看更多</a>
           
                </div>
                
                <div class="pagination">{$pages}</div>
            
            </div>
			

    </div>
    
    <div class="aside"> 
    
   
   
   <div class="mod">
   	  <div class="head"></div>
      <div class="body">
      	
        <ul class="nav nav-tabs nav-stacked">
         <li {if $action==edit} class="active" {/if}><a href="{url("?module=space&userid=$_userid")}"><i class="icon-share"></i>访问博客<br/>{url("?module=space&userid=$_userid")}</a></li>
        <li {if $action==visitor} class="active" {/if}><a href="{url("?module=member&action=visitor")}">今日来访</a></li>
        <li {if $file==collect} class="active" {/if}><a href="?module=collect">我的收藏</a></li>
      </ul>
      
      </div>
   </div>
      
      
    <div class="mod">
        <div class="head">每日箴言(<a href="{url("?module=say")}">更多</a>)</div>
        <div class="body">
            {get sql="select url,userid,username,description,hits from table_say order by sayid DESC" rows="1"}
            {$r[description]}
            {/get}
        </div>
    </div> 
    
    
       <div class="mod">
        <div class="head">最新公告(<a href="{url("?module=announce")}">更多</a>)</div>
            <ul class="body">
          {get sql="select announceid,title,addtime,todate,hits from table_announce order by addtime desc" rows="10"}
            <li>
            <a href="{url("?module=announce&announceid=$r[announceid]")}">{$r[title]}</a><br/>
            时间：{if ($r[todate]=='0000-00-00')}不限{else}{$r[fromdate]}至{$r[todate]}{/if}<br/>
            {$r[hits]}人阅读
            </li>
          {/get}
          </ul>
     </div>
    
    <div class="mod">
    	
        <div class="head">发现小组</div>
    	<ul class="body users">
        	
            {get sql="select url,title,thumb from table_group where thumb <> '' order by updatetime desc" rows="4"}
            <li {if $n%4==1} class="clear" {/if}>
             <a href="{url($r[url])}" title="{$r[title]}">
             <img src="{php echo $r[thumb] ? thumb($r[thumb],40,40) : thumb('misc/nopic.gif',40,40)}" 
             alt="{$r[title]}"  target="_blank" width="40" height="40"/></a>
             <br/>
             <a href="{url($r[url])}">{str_cut($r[title],15,'')}</a>
             <br/>{rand(100,500)}个成员
            </li>
          {/get}
          
        </ul>
    </div>
 
     
     <div class="mod">
        <div class="head">最新企业(<a href="{url("?module=yellowpage")}">更多</a>)</div>
        <ul class="body users">
              {get sql="SELECT userid,companyname,sitedomain,logo FROM `table_member_company` WHERE status = 1 ORDER BY userid DESC" rows="7"}
                {if $r[companyname]}
                <li {if $n%4==1} class="clear" {/if}>
                <a href="{url("?module=yellowpage&userid=$r[userid]")}" title="{$r[companyname]}">
                <img src="{php echo $r[logo] ? thumb($r[logo],40,40) : thumb('misc/nopic.gif',40,40)}" target="_blank" width="40" height="40"/></a>
                <br/>
                <a href="{url("?module=yellowpage&userid=$r[userid]")}" title="{$r[companyname]}">{str_cut($r[companyname],26,'..')}</a><br/>
                {str_cut($r[introduce],45,'..')}
                </li>
                {/if}
              {/get}
        </ul>
    </div>
    
    {template 'adwords.html','adwords'}
    
    
          
          
    </div>
</div>

{template 'footer.html'}


<!--<?php 
$msg_guide = 2;
print <<<EOT
-->
<div>
		$msg_guide
</div>
<!--
EOT;
?>-->